<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>


<form action="home.do">
 <font color="red">
 <html:messages id="err"  property="nameer">
 <bean:write name="err"/><br/>
 </html:messages>
 </font>
Name : <input type="text" name="nam"/><br/>
 <font color="red">
  <html:messages id="err"  property="pwder">
 <bean:write name="err"/><br/>
 </html:messages>
 </font>
Password : <input type="password" name="pass"/><br/>
<input type="submit" value="Login"/>
<input type="reset" value="Cancel"/>
</form>
